 <?php                                                                                              
    $csspath = 'news/news.css';
    //$jspath = 'examination/examination.js';
 ?>
<?php require_once VIEWPATH.'common/header.php'; ?>
<?php require_once VIEWPATH.'common/sidebar.php'; ?>
<!--main content start-->
<section id="main-content">
    <section class="wrapper site-min-height">
    <h3><i class="fa fa-angle-right"></i> 在线考试列表</h3>
        <div class="row mt">
            <div class="col-md-12">
              <div class="content-panel">
                  <div class="main">
                      <div class="news_overfl">

                         <div class="news_wh_con">
                           <div class=" news_mokuai col-md-12">
                            <ul>
                              <?php if($examinationList):?>
                                <?php foreach ($examinationList as $key => $value):?>
                              <li><span class="fr"><?=date("Y-m-d",strtotime($value['createTime']));?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="/examination/show?type=2&paperID=<?=$value['paperID']?>&extID=<?=$value['examinationID']?>"><?=$value['examinationTitle']?></a></li>

                              <?php endforeach;?>
                              <?php else:?>
                                <li><span>暂时没数据</span><a href="#">
                              <?php endif;?>
                              <li><div class="page_links"><?= $page_links?></div></li>
                            </ul>
                            </div>
                          </div>
                     </div>
                  </div>
              </div>
            </div><!-- /content-panel -->
        </div><!-- /row -->
  </section>
</section>
<?php require_once VIEWPATH.'common/footer.php'; ?>
<script type="text/javascript">
  $(".download").click(function(){
    var docpath = $(this).attr("data");
    var filename = $(this).attr("filename");
    window.open("/document/fileDown?docpath="+docpath+"&filename="+filename);
  });
</script>
